<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
<title>代驾</title>
<link rel="stylesheet" type="text/css" href="../../css/aui-win.css" />
<style type="text/css">
    *{
        padding:0;
        margin: 0;
    }
    iframe{
        border: none;
    }
</style>
</head>
<body>
	<header class="aui-bar aui-bar-nav aui-bar-yunzo" id="aui-header">
        <a class="aui-btn aui-bar-yunzo aui-pull-left" id="back" onclick="back_go()"> <span class="aui-iconfont aui-icon-left"></span></a>
        <div class="aui-title" id="title">
            代驾
        </div>
        <a class="aui-iconfont aui-icon-menu aui-pull-right"></a>
    </header>
    <div class="margin_div"></div>
    <iframe src="" width="100%" height="90%" scrolling="no"></iframe>
<script type="text/javascript" src="../../script/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="../../script/common.js"></script>
<script>
var osstr;
var lng=getUrlParam("lng");  
var lat=getUrlParam("lat"); 
var temp="";
var u = navigator.userAgent;
if (u.indexOf('Android') > -1 || u.indexOf('Linux') > -1) {//安卓手机
osstr="Android";
} else if (u.indexOf('iPhone') > -1) {//苹果手机
osstr="iPhone";
} else if (u.indexOf('Windows Phone') > -1) {//winphone手机
osstr="Windows Phone";
//window.location.href = "mobile/index.html";  &lng=104.06667&lat=30.66667&
}
if(lng!=null&&lat!=null)
{
	temp="&lng="+lng+"&lat="+lat;
}
var url="http://h5.edaijia.cn/newapp/index.html?os="+osstr+"&phone="+$mid+"&from=01050002"+temp;

$("iframe").attr("src",url);

function getLocation(callback){
	if(navigator.geolocation){
	    navigator.geolocation.getCurrentPosition(
	            function(p){
	                callback(p.coords.latitude, p.coords.longitude);
	            },
	            function(e){
	                var msg = e.code + "\n" + e.message;
	            }
	    );
	}
}

</script>
</body>
</html>